/*
 * Dispatcher.h
 *
 *  Created on: Dec 22, 2009
 *      Author: kevin
 */

#ifndef DISPATCHER_H_
#define DISPATCHER_H_

#include <Poco/Thread.h>

#include "command/commandqueue.h"
#include "slave/slave.h"

namespace Commands
{

	class Dispatcher: public Poco::Runnable
	{
		public:
			Dispatcher( Slave slave, CommandQueue *cmds);
			virtual ~Dispatcher();

			void run();
		private:
			Slave* fSlave;
			CommandQueue* fCommands;
	};

}

#endif /* DISPATCHER_H_ */
